//
//  PYMacroDefineHeader.h
//  IHome
//
//  Created by zhujizheng on 2020/2/15.
//  Copyright © 2019年 com.zhujizheng. All rights reserved.
//

#ifndef PYMacroDefineHeader_h
#define PYMacroDefineHeader_h

// MARK: 尺寸
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width

#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#define APP_WIDTH [UIApplication sharedApplication].keyWindow.frame.size.width

#define APP_HEIGHT [UIApplication sharedApplication].keyWindow.frame.size.height

#define APP_STATUSBAR_HEIGHT (CGRectGetHeight([UIApplication sharedApplication].statusBarFrame))

#define APP_NORMAL_STATUSBAR_HEIGHT 20.f

#define APP_NAVIGATION_HEIGHT 44.f

#define APP_TABBAR_HEIGHT 49.f

#define PY_GOLD_RATIO 0.618

// MARK: 字体
#define PY_Font_Light(fontSize) [UIFont systemFontOfSize:fontSize weight:UIFontWeightLight]

#define PY_Font_Regular(fontSize) [UIFont systemFontOfSize:fontSize weight:UIFontWeightRegular]

#define PY_Font_Default [UIFont systemFontOfSize:16]

#define PY_Font_Small_Default [UIFont systemFontOfSize:15]

#define PY_Font_Bold(fontSize) [UIFont boldSystemFontOfSize:fontSize]

#define PY_Font_Money(fontSize) [UIFont fontWithName:@"Menlo-Italic" size:fontSize]

#define PY_Line_Space 4

// MARK: 颜色
#define PY_Light_Color [UIColor colorWithWhite:136.f/255.f alpha:1]

#define PY_Medium_Color [UIColor colorWithWhite:85.f/255.f alpha:1]

#define PY_Dark_Color [UIColor colorWithWhite:34.f/255.f alpha:1]

#define PY_Red_Color [UIColor colorWithRed:150.f green:36.f/255.f blue:46.f/255.f alpha:1]
#define PY_Blue_Color [UIColor colorWithRed:81.f/255.f green:196.f/255.f blue:243.f/255.f alpha:1]
#define PY_Yellow_Color [UIColor colorWithRed:250.f/255.f green:136.f/255.f blue:61.f/255.f alpha:1]
#define PY_Gold_Color [UIColor colorWithRed:1 green:172.f/255.f blue:59.f/255.f alpha:1]
#define PY_APP_Main_Color [UIColor colorWithRed:0.98 green:0.62 blue:0.22 alpha:1.00]
//#define PY_APP_Main_Color [UIColor colorWithRed:1 green:179.f/255.f blue:219.f/255.f alpha:1.00] //#FFB3DB

#define PY_APP_Controller_backgroundColor [UIColor whiteColor]

#define PY_APP_ImageView_backgroundColor [UIColor colorWithWhite:0.96 alpha:1]

#define PY_APP_TableView_separatorColor [UIColor colorWithWhite:0.85 alpha:1]

#define APP_NAVIGATION_COLOR [UIColor colorWithWhite:248.f/255.f alpha:1]

#define APP_TABBAR_COLOR [UIColor colorWithRed:0.47 green:0.81 blue:0.93 alpha:1.00]

#define PY_APP_Name_Color [UIColor colorWithRed:89.f/255.f green:106.f/255.f blue:135.f/255.f alpha:1.00]

// MARK: 时间
#define PY_Animation_Duration 0.25

// MARK: 表达式
#define kDegreesToRadian(degrees) (M_PI * (degrees) / 180.0)
#define PYWeakSelf __weak typeof(self) weakSelf = self;
#define PYStrongSelf __strong typeof(self) strongSelf = weakSelf;

#define SuppressPerformSelectorLeakWarning(Stuff) \
do { \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
Stuff; \
_Pragma("clang diagnostic pop") \
} while (0);

#endif /* PYMacroDefineHeader_h */
